package com.nmgdz.bigdata.entity;

import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.*;
import java.util.Date;
@Table(name ="company_monitor_sensor")
@Entity
@Data

public class User implements Serializable {
    @Id

    private Integer id;
    private String company_code;
    private Boolean  monitor_type;
    private String sys_name;
    private Integer equipment_type_id;
    private String equipment_type_name;
    private Integer sensor_type_id;
    private String sensor_type_name;
    private Integer technology_type_id;
    private String technology_type_name;
    private String department;
    private String sensor_code;
    private String location;
    private String storage_material;
    private BigDecimal level_alarm_high;
    private BigDecimal secondary_alarm_high;
    private BigDecimal level_alarm_low;
    private BigDecimal secondary_alarm_low;
    private Integer operate_id;
    private String operate_username;
    @CreationTimestamp
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date create_time;
    @CreationTimestamp
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date update_time;

}
